    /**广点通统计****/
	var gdt_tracker = gdt_tracker || [];
	gdt_tracker.push(["set_account_id", "5212166"]);
	gdt_tracker.push(["add_action", "TRACK_CONVERSION" , "26350"]);
	gdt_tracker.push(["send"]);

	(function(){
		var doc=document, h=doc.getElementsByTagName('head')[0], s=doc.createElement('script');
		s.async=true;
		s.src="//qzs.qq.com/qzone/biz/res/gt.js";
		h && h.insertBefore(s, h.firstChild)
	})();


	/***register start******/
	$('.login_list').submit(function (){
			var url = $(this).attr('action');
			var datas = $(this).serializeArray();
			//console.log(datas);
			//t_loading();
			$.post(url,datas,function (data){
				t_delay(data.info);
				if(data.status == 1){
					gdt_tracker.push(["send"]);//事件触发点	 
					setTimeout(function (){window.location.href = data.url;},1800);
				}
			},'json');
		return false;
	});
	 function phonecdty(){
     var phone = $("#phone").val();
     var name = $("#name").val();	
     var tel = $("input[name='tel']").val();
     
		if (tel == "") { 
				alert("亲，手机号码不能为空！"); 
				 return;
		} 
 
	  //t_loading(); 
	 $.post("/m/center_code",{phone:phone,name:name},function (data){
        
	  	layer.msg(data.info);
	  	//console.log(data.status);
	 	if(data.status == 1){
	 		 //console.log(111111111);
		   $(".yzm_btn").css('background','#ccc');

		   $(".yzm_btn").css('border','1px solid #ccc');

		    $(".yzm_btn").prop("disabled", true);

			  var second = 60;

			  var timer = null;

			  timer = setInterval(function(){

				second -= 1;

				if(second >0 ){

					$(".yzm_btn").attr("value",second+'秒后重发');

				}else{
					 //console.log(22222);
					clearInterval(timer);

					$(".yzm_btn").css('background','#be0101');

			        $(".yzm_btn").css('border','1px solid #be0101');

			        $(".yzm_btn").prop("disabled", false);

			        $(".yzm_btn").attr("value","重新获取");

				}

			},1000);

	 	}
      },'json')
     };
		